class MeetingData {
  int? id;
  String? createTime; // 创建时间
  String? meetingName; // 会议名称
  String? meetingContent; // 会议内容
  int? meetingState; // 会议状态
  String? meetingBeginTime; // 开始时间
  String? meetingEndTime; // 结束时间
  String? meetingAddress; // 会议地址
  String? participants; // 参与人
  String? meetingMinutes; // 会议纪要
  String? deviceOpen; // 会议设备开启
  String? facilities; // 设施

  MeetingData({
    this.id,
    this.createTime,
    this.meetingName,
    this.meetingContent,
    this.meetingState,
    this.meetingBeginTime,
    this.meetingEndTime,
    this.meetingAddress,
    this.participants,
    this.meetingMinutes,
    this.deviceOpen,
    this.facilities,
  });

  // 从 Map 创建 MeetingData 对象
  factory MeetingData.fromMap(Map<String, dynamic> json) {
    return MeetingData(
      id: json["id"],
      createTime: json["createTime"],
      meetingName: json["meetingName"],
      meetingContent: json["meetingContent"],
      meetingState: json["meetingState"],
      meetingBeginTime: json["meetingBeginTime"],
      meetingEndTime: json["meetingEndTime"],
      meetingAddress: json["meetingAddress"],
      participants: json["participants"],
      meetingMinutes: json["meetingMinutes"],
      deviceOpen: json["deviceOpen"],
      facilities: json["facilities"],
    );
  }

  // 转换为 Map
  Map<String, dynamic> toMap() {
    return {
      "id": id,
      "createTime": createTime,
      "meetingName": meetingName,
      "meetingContent": meetingContent,
      "meetingState": meetingState,
      "meetingBeginTime": meetingBeginTime,
      "meetingEndTime": meetingEndTime,
      "meetingAddress": meetingAddress,
      "participants": participants,
      "meetingMinutes": meetingMinutes,
      "deviceOpen": deviceOpen,
      "facilities": facilities,
    };
  }
}
